/*
 * @Author: shawnxiao
 * @Date: 2021-11-12 17:17:11
 * @LastEditTime: 2021-11-14 11:56:57
 * @FilePath: /gatt-react/src/index/views/Home/components/GattDrag/components/AddDrawer/index.tsx
 */
import React from 'react'
import DrawerCom from '@/components/DrawerCom'
import FormRender from './components/FormRender'

function AddDrawer(props:any) {
  const {
    visible, onClose, onSaveDrawer
  } = props
  return (
    <DrawerCom
      visible={visible}
      onClose={onClose}
      // 关闭时销毁 Drawer 里的子元素
      destroyOnClose={true}
      width={600}
      onSaveDrawer={onSaveDrawer}>
      <FormRender/>
  </DrawerCom>
  )
}

export default AddDrawer
